package com.ktjy.controller;

import com.ktjy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lqm
 * @ClassName UserCoutroller
 * @description: TODO
 */
@RestController
public class UserCoutroller {
    @Autowired
    UserService userService;
    @RequestMapping("/getCount")
    public String getCount(){
        return "共有"+userService.count()+"条数据！";
    }
}
